package org.ljy.lotterysystem.service;

import org.ljy.lotterysystem.controller.param.CreateActivityParam;
import org.ljy.lotterysystem.controller.param.PageParam;
import org.ljy.lotterysystem.service.dto.ActivityDTO;
import org.ljy.lotterysystem.service.dto.ActivityDetailDTO;
import org.ljy.lotterysystem.service.dto.CreateActivityDTO;
import org.ljy.lotterysystem.service.dto.PageListDTO;

public interface IActivityService {

    /**
     * 创建活动
     * @param param
     * @return
     */
    CreateActivityDTO createActivity(CreateActivityParam param);


    /**
     * 获取活动(简介)列表页
     * @param param
     * @return
     */
    PageListDTO<ActivityDTO> findActivityList(PageParam param);


    /**
     * 返回完整的活动信息
     * @param activityId
     * @return
     */
    ActivityDetailDTO getActivityDetail(Long activityId);


    /**
     * 更新缓存
     * @param activityId
     */
    void cacheActivity(Long activityId);
}
